rsa pki encoding/decoding tests and fix for encoding rsapss to pki#333
Conversation
SparkiDev
left a comment
There was a problem hiding this comment.
Why does wp_rsa_import have a parameter with a string that is the wrong name form?
We have places we set mdName to something explicitly and they can be changed but the import should be the same as
5b5c753 to
4807359
Compare
comment seems cut off so I took my best guess. I didn't do anything to As for why this functions exists: When you get parameters from wolfProvider the md and mgf should match what OpenSSL uses for their digest names. I didn't edit what the md and mgf were set to in wolfProvider since it seems like that could cause issues in wolfCrypt (though I'm not certain). |
4807359 to
e32456b
Compare
e32456b to
8688d64
Compare
This mainly contains testing for encoding / decoding RSA and RSASSA-PSS keys to / from pki.
Found some bugs and fixed them:
Addendum:
test_rsa_decode_pkcs8_evp_pkeyto allow decoding ctx to be specified. Now decoding can be done with ossl and wp, or just ossl.